// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_BPT_APPLICATION
// * CreateDate    : 2012-1-4 11:55:20
// * Creater       : CodeSmith
// * LastChangeDate: 2012-1-4 11:55:20
// * LastChanger   : 2012-1-4 11:55:20
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class BptApplicationTable : TableInfo
    {
        public const string C_TableName = "BPT_APPLICATION";

        public const string C_APPLICATION_ID = "APPLICATION_ID";
        public const string C_APPLICATION_TYPE = "APPLICATION_TYPE";
        public const string C_APPLICATION_CODE = "APPLICATION_CODE";
        public const string C_PROD_APPLICATION_ID = "PROD_APPLICATION_ID";
        public const string C_APPLICATION_PERSON = "APPLICATION_PERSON";
        public const string C_STATUS = "STATUS";
        public const string C_REMARK = "REMARK";
        public const string C_CREATED_DATE = "CREATED_DATE";
        public const string C_CREATED_BY = "CREATED_BY";
        public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
        public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
        public const string C_APPROVED_DATE = "APPROVED_DATE";
        public const string C_APPROVED_BY = "APPROVED_BY";
        public const string C_REP_PRODUCT_REGISTER_ID = "REP_PRODUCT_REGISTER_ID";

        public BptApplicationTable()
        {
            _tableName = "BPT_APPLICATION";
        }

        protected static BptApplicationTable _current;
        public static BptApplicationTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new BptApplicationTable();

            _current.Add(C_APPLICATION_ID, new ColumnInfo(C_APPLICATION_ID, "ApplicationId", true, typeof(string)));
            _current.Add(C_APPLICATION_TYPE, new ColumnInfo(C_APPLICATION_TYPE, "ApplicationType", false, typeof(string)));
            _current.Add(C_APPLICATION_CODE, new ColumnInfo(C_APPLICATION_CODE, "ApplicationCode", false, typeof(string)));
            _current.Add(C_PROD_APPLICATION_ID, new ColumnInfo(C_PROD_APPLICATION_ID, "ProdApplicationId", false, typeof(string)));
            _current.Add(C_APPLICATION_PERSON, new ColumnInfo(C_APPLICATION_PERSON, "ApplicationPerson", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE, "CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY, "CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE, "LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY, "LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE, "ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY, "ApprovedBy", false, typeof(string)));
            _current.Add(C_REP_PRODUCT_REGISTER_ID, new ColumnInfo(C_REP_PRODUCT_REGISTER_ID, "RepProductRegisterId", false, typeof(string)));

        }

        public ColumnInfo APPLICATION_ID
        {
            get { return this[C_APPLICATION_ID]; }
        }

        public ColumnInfo APPLICATION_TYPE
        {
            get { return this[C_APPLICATION_TYPE]; }
        }

        public ColumnInfo APPLICATION_CODE
        {
            get { return this[C_APPLICATION_CODE]; }
        }

        public ColumnInfo PROD_APPLICATION_ID
        {
            get { return this[C_PROD_APPLICATION_ID]; }
        }

        public ColumnInfo APPLICATION_PERSON
        {
            get { return this[C_APPLICATION_PERSON]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }

        public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }

        public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }

        public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }

        public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }

        public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }

        public ColumnInfo REP_PRODUCT_REGISTER_ID
        {
            get { return this[C_REP_PRODUCT_REGISTER_ID]; }
        }



    }
}

